<%@ Page Language="C#" AutoEventWireup="true" Culture="auto"  meta:resourcekey="PageResource1" UICulture="auto" %>

<%@ Register Assembly="AdventureWorks.Cinema.Client.Rss.WebControls" Namespace="AdventureWorks.Cinema.Client.Rss.WebControls"
    TagPrefix="adventureworks" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Movie RSS Feed</title>
</head>
<body>
    <form id="form1" runat="server">
        <adventureworks:RssRepeater ID="MoviesByUserRepeater" runat="server" DataSourceID="MoviesByUserDataSource" RssDescription="<%$ Resources:RssDescription %>"
            RssLink="<%$ Resources:RssLink %>" RssTitle="<%$ Resources:RssTitle %>">
            <ItemTemplate>
	            <item><title><%# DataBinder.Eval(Container.DataItem, "Title") %></title>
		            <description><%# DataBinder.Eval(Container.DataItem, "Description") %>, <%# DataBinder.Eval(Container.DataItem, "StartDate") %>, <%# DataBinder.Eval(Container.DataItem, "ParentalGuidance") %>, <%# DataBinder.Eval(Container.DataItem, "Length") %></description>
	            </item>
	        </ItemTemplate>
        </adventureworks:RssRepeater>
        <br />
        <asp:ObjectDataSource ID="MoviesByUserDataSource" runat="server" SelectMethod="GetMoviesByUserId"
            TypeName="AdventureWorks.Cinema.Client.Rss.BusinessHelper">
            <SelectParameters>
                <asp:QueryStringParameter Name="userId" QueryStringField="userid" Type="Object" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </form>
</body>
</html>
